
package Persistencia;

import java.sql.Connection;
import java.sql.DriverManager;  
import java.sql.SQLException;

public class ConnectionFactory {
    
      public static Connection getConnection() {
		try {
                    Class.forName("oracle.jdbc.driver.OracleDriver");
                    return DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:ORACLE", "system", "oracle");
		} catch (SQLException e) {
			throw new RuntimeException(e);
		} catch (ClassNotFoundException e) {
                    throw  new RuntimeException(e);
                }
	}
}
